<?php $post = ${$inflector['singular']}; ?>
<div class="<?php echo $inflector['underscore'];?> view">
	<h2><?php  echo __($inflector['camelize']);?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd><?php echo h($post[$inflector['camelize']]['id']); ?>&nbsp;</dd>
		<dt><?php echo __('Tenant'); ?></dt>
		<dd><?php echo $this->Html->link($post['Tenant']['name'], array('controller' => 'tenants', 'action' => 'view', $post['Tenant']['id'])); ?>&nbsp;</dd>
		<dt><?php echo __('Deleted'); ?></dt>
		<dd><?php echo h($post[$inflector['camelize']]['deleted']); ?>&nbsp;</dd>
		<dt><?php echo __('Author'); ?></dt>
		<dd><?php echo $this->Html->link($post['Author']['name'], array('controller' => 'users', 'action' => 'view', $post['Author']['id'])); ?>&nbsp;</dd>
		<dt><?php echo __('Category'); ?></dt>
		<dd><?php echo $this->Html->link($post['Category']['name'], array('controller' => 'categories', 'action' => 'view', $post['Category']['id'])); ?>&nbsp;</dd>
		<dt><?php echo __('Published'); ?></dt>
		<dd><?php echo h($post[$inflector['camelize']]['published']); ?>&nbsp;</dd>
		<dt><?php echo __('Click Count'); ?></dt>
		<dd><?php echo h($post[$inflector['camelize']]['click_count']); ?>&nbsp;</dd>
		<dt><?php echo __('Comment Count'); ?></dt>
		<dd><?php echo h($post[$inflector['camelize']]['comment_count']); ?>&nbsp;</dd>
		<dt><?php echo __('Title'); ?></dt>
		<dd><?php echo h($post[$inflector['camelize']]['title']); ?>&nbsp;</dd>
		<dt><?php echo __('Content'); ?></dt>
		<dd><?php echo h($post[$inflector['camelize']]['content']); ?>&nbsp;</dd>
		<dt><?php echo __('Images'); ?></dt>
		<dd><?php echo h($post[$inflector['camelize']]['images']); ?>&nbsp;</dd>
		<dt><?php echo __('Publish Date'); ?></dt>
		<dd><?php echo h($post[$inflector['camelize']]['publish_date']); ?>&nbsp;</dd>
		<dt><?php echo __('Cover'); ?></dt>
		<dd><?php echo h($post[$inflector['camelize']]['cover']); ?>&nbsp;</dd>
		<dt><?php echo __('Gmt Published'); ?></dt>
		<dd><?php echo h($post[$inflector['camelize']]['gmt_published']); ?>&nbsp;</dd>
		<dt><?php echo __('Gmt Created'); ?></dt>
		<dd><?php echo h($post[$inflector['camelize']]['gmt_created']); ?>&nbsp;</dd>
		<dt><?php echo __('Gmt Deleted'); ?></dt>
		<dd><?php echo h($post[$inflector['camelize']]['gmt_deleted']); ?>&nbsp;</dd>
		<dt><?php echo __('Gmt Modified'); ?></dt>
		<dd><?php echo h($post[$inflector['camelize']]['gmt_modified']); ?>&nbsp;</dd>
	</dl>
</div>

<?php echo $this->element('menu'); ?>

<div class="related">
	<h3><?php echo __('Related Comments');?></h3>

	<?php if (!empty($post['Comment'])):?>

	<table cellpadding = "0" cellspacing = "0"  class="comments datatable">
		<thead>
			<tr>
				<th><?php echo __('Id'); ?></th>
				<th><?php echo __('Tenant Id'); ?></th>
				<th><?php echo __('Deleted'); ?></th>
				<th><?php echo __('Author Id'); ?></th>
				<th><?php echo __('Post Id'); ?></th>
				<th><?php echo __('Approved'); ?></th>
				<th><?php echo __('Content'); ?></th>
				<th><?php echo __('Gmt Approved'); ?></th>
				<th><?php echo __('Gmt Created'); ?></th>
				<th><?php echo __('Gmt Deleted'); ?></th>
				<th><?php echo __('Gmt Modified'); ?></th>
				<th class="actions"><?php echo __('Actions');?></th>
			</tr>
		</thead>
		<tbody>
		<?php $i = 0; foreach ($post['Comment'] as $comment): ?>
			<tr>
				<td><?php echo $comment['id'];?></td>
				<td><?php echo $comment['tenant_id'];?></td>
				<td><?php echo $comment['deleted'];?></td>
				<td><?php echo $comment['author_id'];?></td>
				<td><?php echo $comment['post_id'];?></td>
				<td><?php echo $comment['approved'];?></td>
				<td><?php echo $comment['content'];?></td>
				<td><?php echo $comment['gmt_approved'];?></td>
				<td><?php echo $comment['gmt_created'];?></td>
				<td><?php echo $comment['gmt_deleted'];?></td>
				<td><?php echo $comment['gmt_modified'];?></td>
				<td class="actions">
					<?php echo $this->Html->link(__('View'), array('controller' => 'comments', 'action' => 'view', $comment['id'])); ?>
					<?php echo $this->Html->link(__('Edit'), array('controller' => 'comments', 'action' => 'edit', $comment['id'])); ?>
					<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'comments', 'action' => 'delete', $comment['id']), null, __('Are you sure you want to delete # %s?', $comment['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
		</tbody>
	</table>

	<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Comment'), array('controller' => 'comments', 'action' => 'add'));?> </li>
		</ul>
	</div>

</div>
